<extend name="Public/layout"/>

<block name="body">
 
 <div>

<div>
	<p style="font-weight:700;margin-bottom:5px">{$time.mon}月1号至{$time.mday}号的销售累计</p>
	<input style="width:50%; background:#eeeeee;max-width:600px;border:1px solid #ccc;height:34px;border-radius:4px" value="{$list.msg.num}" disabled="disabled">
</div>

</div>
    <div class="builder {$builder_class}">
        <div class="row">
            <!-- 数据列表 -->
            <div class="col-xs-12">
                <div class="table-responsive">
                    <table class="table table-hover">
                        <thead>
                            <tr>                             
                                <th>编号</th>
                                <th>订单号</th>
                                   <th>总金额</th>    
                              <th>会员号</th>
                                <th>商品</th>                                                      
                                <th>支付时间</th>
                                <th style="text-align: center;">状态</th>
                            </tr>
                        </thead>
                        <tbody>
                        <volist name="list.msg.list" id="data">
                            <tr>                             
                                <td>{$data.id}</td>
                                <td>{$data.order_no}</td>
                                <td>{$data.total}</td>           
                                <th>{$data.user_id}</th>                                
                                <td>{$data.ids|check_goods_title}</td>                                                   
                                <td>{$data.pay_time|date="Y-m-d H:i",###}</td>
                                <td style="text-align: center;">
                                    {:get_order_status($data['pay_status'],$data['send_status'],$data['status'])}
                                </td>
                            </tr>
                        </volist>
                        </tbody>
                    </table>
                    <ul class="pagination"><notempty name="page">{$page}</notempty></ul>
                </div>
            </div>
        </div>
    </div>

    <script type="text/javascript">
        //搜索功能
        $("#search").click(function () {
            var url = $(this).attr('url');
            var query = $('.search-form').find('input').serialize();
            query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
            query = query.replace(/^&/g, '');
            if (url.indexOf('?') > 0) {
                url += '&' + query;
            } else {
                url += '?' + query;
            }
            window.location.href = url;
        });

        //回车搜索
        $(".search-input").keyup(function (e) {
            if (e.keyCode === 13) {
                $("#search").click();
                return false;
            }
        });
    </script>
</block>


